package com.gourd.common.enums;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.Getter;
import lombok.Setter;

/**
 * 性别枚举工具类
 *
 * @author gourd
 * @create 2018-07-04 15:41
 **/
@JSONType(serializeEnumAsJavaBean = true)
public enum SexEnum {
    M("M","男"),
    F("F","女"),
    X("X","未知");

    @Getter
    @Setter
    private String value;

    @Getter
    @Setter
    private String label;

    SexEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }
}